# -*- coding: utf-8 -*-
"""
Created on Thu Oct 30 16:41:33 2025

@author: xiaok
"""

import numpy as np
import matplotlib.pyplot as plt
import os


os.chdir(r'D:\m_proj_24\mii_app')
data_save = np.load('data_save.npy')
data_marker = np.load('data_marker.npy')

plt.plot(data_save[:,0])

t_arr = data_save[:,0]

m_arr = data_marker[:,0]

m_index = np.searchsorted(t_arr, m_arr)

m_t = m_index/500


makers = data_marker[:,1]
makers = makers.astype(np.int32)

for i, m in enumerate(m_t):
    print(m)
    print(makers[i])
